//
//  PublishRecuritMessageCell.swift
//  甜言蜜语
//
//  Created by yingli_yanfa_liuxingyu on 16/8/1.
//  Copyright © 2016年 wl. All rights reserved.
//

import UIKit

class PublishRecuritMessageCell: UITableViewCell ,UITextViewDelegate{
    @IBOutlet weak var typeLbl: UILabel!
    @IBOutlet weak var placeholderLbl: UILabel!
    @IBOutlet weak var iv: UIImageView!
    @IBOutlet weak var showLbl: UILabel!
    @IBOutlet weak var showText: UITextView!
    //let vc = PublishRecruitMessageVC()
    
    
    var titleStr: String?//公司简介
    var requirStr: String?//职位要求
    var contentStr: String?//联系人
    var telStr: String?//联系电话
    var addressStr: String?//详细地址
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        self.showText.delegate = self
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
       
    //MARK:UITextViewDelegate
    func textViewDidChange(textView: UITextView){
        let note = textView.text
//        switch tag {
//        case 0:
//           // vc.dict.updateValue(note, forKey: "公司简介")
//          
//             let dic = ["id":textView.tag, "note":note]
//   NSNotificationCenter.defaultCenter().postNotificationName("PublishRecruitMessageVC_Noti", object: dic)
//        case 5:
//            //vc.dict["详细地址"] = note
//           // vc.dict.updateValue(note, forKey: "详细地址")
//           // vc.tableView.reloadData()
//        case 8:
//            //vc.dict["职务要求"] = note
//           // vc.dict.updateValue(note, forKey: "职务要求")
//           // vc.tableView.reloadData()
//        case 9:
//            //vc.dict["联系人"] = note
//           // vc.dict.updateValue(note, forKey: "联系人")
//           // vc.tableView.reloadData()
//        case 10:
//            //vc.dict["联系电话"] = note
//           // vc.dict.updateValue(note, forKey: "联系电话")
//           // vc.tableView.reloadData()
//        default:
//            break
//        }
        if note.characters.count > 0{
            self.placeholderLbl.alpha = 0
        }else{
            self.placeholderLbl.alpha = 1
        }
        
    }

    
    
}
  

    

